package com.deep.deepenterpise.model.to.gas;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author xyz
 * @version 1.0
 * @title DrAddStaffTrainingTo
 * @description
 * @create 2024/5/10 15:56
 */
@Data
public class DrAddStaffTrainingTo {
    @NotBlank(message = "培训课题不能为空")
    private String drTrainingTopics;
    @NotBlank(message = "培训类型不能为空")
    private String drTrainingType;
    @NotBlank(message = "培训单位不能为空")
    private String drTrainingUnit;
    @NotBlank(message = "培训人不能为空")
    private String drTrainer;
    @NotNull(message = "参与人数不能为空")
    private Integer drJoinNum;
    @NotNull(message = "培训时间不能为空")
    private Integer drCreateTime;

    @NotNull(message = "参与人不能为空")
    private List<JoinPerson> drJoinPerson;


    @Data
    public static class JoinPerson {
        private String drName;
        private String drCard;
        private String drScore;
        private String drOperate;
    }
}
